import request from '@/utils/request'

// 查询下滑预警看板数据
export function getDeclineWarnBoardData(query) {
  return request({
    url: '/business/declineWarnBoard/getDeclineWarnBoardData',
    method: 'get',
    params: query
  })
}

// 查询下滑预警数据复盘列表
export function declineReplayData(query) {
  return request({
    url: '/business/declineWarnBoard/declineReplayData',
    method: 'get',
    params: query
  })
}

// 获取下滑预警数据复盘合计数据
export function getReplayCollectData(query) {
  return request({
    url: '/business/declineWarnBoard/getReplayCollectData',
    method: 'get',
    params: query
  })
}

// 导出下滑预警复盘数据文件
export function exportDeclineReplayData(data){
  return request({
    url: '/business/declineWarnBoard/exportDeclineReplayData',
    method: 'post',
    data: data
  })
}
